home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _5023632F99B24A19813D741DB0B436B8 < prev    next >
Encoding:
Text File  |  2004-07-20  |  3.3 KB  |  151 lines

  1. // $TEXTURE1
  2. // $TEX1OPTIONSFILE
  3. // $DIRT
  4. // $DIRTOPTIONSFILE
  5. // $BFUNC
  6. // $SORTW
  7. // $CULLING
  8.  
  9. shader()
  10. {
  11.     ShaderQuality(3)
  12.     pass()
  13.     {
  14.         Lighting()
  15.         Pixelshader("CarB_Cd_ps11.psh")
  16.         Vertexshader("CarB_Cd_ps11.vsh")
  17.         
  18.         !include("__tex1.mtt")
  19.         !include("__Dirt.mtt")
  20. //        !include("__TerrainColormapVS.mtt")
  21.         !include("__TerrainColormapSmallVS.mtt")
  22.         !include("__CloudsVS.mtt")
  23.  
  24.         !include("__LightningDiffuseOnly.mtt")
  25.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // RGB - lights state, A - dirt level
  26.         !include(BFUNC)
  27.     }
  28.     sortweight(SORTW)
  29.     Cull(CULLING)
  30. }
  31.  
  32.  
  33. shader()
  34. {
  35.     ShaderQuality(1)
  36.     pass()
  37.     {
  38.         //Lighting()
  39.         Pixelshader("CarB__ps11.psh")
  40.         Vertexshader("CarB__ps11.vsh")
  41.  
  42.         !include("__tex1.mtt")
  43.         !include("__Dirt.mtt")
  44.         !include("__TerrainColormapSmallVS.mtt")
  45.  
  46.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  47.         !include(BFUNC)
  48.     }
  49.     sortweight(SORTW)
  50.     Cull(CULLING)
  51. }
  52.  
  53.  
  54. //=========================== GF2 ======================================
  55. shader()
  56. {
  57.     ShaderQuality(2)
  58.  
  59.     pass()
  60.     {
  61.         Lighting()
  62.         tmu()
  63.         {
  64.             TexGen("planar")
  65.             TexMod("scale", "const", 0.00001, 0, 0, "const", 0.00001, 0, 0)
  66.             texture()
  67.             {
  68.                 Image(%colortexturesmall)
  69.                 addressfunc("clamp", "clamp", "clamp")
  70.             }
  71.             ColorOp("mul_add", "texture_a", "current", "diffuse_a")
  72.             AlphaOp("arg1", "texture_a", "current", "current")
  73.         }
  74.         AmbientColor(0.0, 0.0, 0.0, 1.000)
  75.         DiffuseColor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  76.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  77.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  78.         SpecularPow(0.0)
  79.                
  80.     }
  81.     lightpass()
  82.     !include("spot_spotmap.mtt")
  83.  
  84.     pass()
  85.     {
  86.         tmu()
  87.         {
  88.             Texture()
  89.             {
  90.                 Mapchannel(0)
  91.                 Image(DIRT_GF2)
  92.                 !include(DIRTOPTIONSFILE)
  93.             }
  94.             ColorOp("arg1", "tfactor", "current", "current")
  95.             AlphaOp("mul", "tfactor_a", "texture_a", "current")       
  96.         }
  97.         tmu()
  98.         {
  99.             Texture()
  100.             {
  101.                 Mapchannel(0)
  102.                 Image(TEXTURE1)
  103.                 !include(TEX1OPTIONSFILE)
  104.             }
  105.             ColorOp("blend_current_alpha", "current", "texture", "current")
  106.         }
  107.  
  108.         tfactor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
  109.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0)
  110.    
  111.         BlendFunc("zero", "src_color")
  112.     }
  113.  
  114.     Cull(CULLING)
  115. }
  116. //=======================================================
  117. /*
  118. shader()
  119. {
  120.     ShaderQuality(0)
  121.     pass()
  122.     {
  123.         Lighting()
  124.         Pixelshader("Common.psh")
  125.         Vertexshader("Common.vsh")
  126.         !include("__tex1.mtt")
  127.     }
  128.     sortweight(SORTW)
  129.     Cull(CULLING)
  130. }
  131. */
  132. shader()
  133. {
  134.     ShaderQuality(0)
  135.     pass()
  136.     {
  137.         Lighting()
  138.         !include("__tex1.mtt")
  139.         !include("__LightningColorsGF2.mtt")  
  140.     }
  141. //    lightpass()
  142. //    !include("spot_spotmap.mtt")
  143.     
  144.     sortweight(SORTW)
  145.     Cull(CULLING)
  146. }
  147.  
  148.  
  149.  
  150.  
  151.